<?php
namespace app\utils;
use App;
class Session extends \app\BaseObject{
	public function init(){
		// $session_id = !empty($_COOKIE[App::$app->getOption('cookie_id')]) ? $_COOKIE[App::$app->getOption('cookie_id')] : '';
		// if (session_id($session_id) == '') {
		//     session_start();
		// }
	}
	public function set($key, $value){
		$_SESSION[$key] = $value;
	}
	public function get($key){
		return isset($_SESSION[$key]) ? $_SESSION[$key] : false;
	}
}